package com.vonchange.purchase.merchant.bean;
import com.vonchange.headb.core.annotation.HeaEntity;
import com.vonchange.headb.core.annotation.HeaExclusion;
import com.vonchange.headb.core.annotation.HeaId;

import java.util.Date;
import java.util.List;
 /**
 *  采购方,商户
 *  @author    vonchange
 *  @date     2016年06月27日 15:12:28 
 */
 @HeaEntity("merchant")
public class  Merchant{
     
     /**
     * 
     */
     @HeaId
     private String  id;     
     /**
     * 采购方地址或名字
     */
     private String  name;     
     /**
     * 
     */
     private String  remark;     
     /**
     * 父采购方
     */
     private String  parentId;     
     /**
     * 
     */
     private Float  sort;     
     /**
     * 
     */
     private Integer  isDelete;     
     /**
     * 
     */
     private Date  createTime;     
     /**
     * 
     */
     private Date  updateTime;
     @HeaExclusion
     private Boolean hasChild;
     private List<Merchant> subMerchants;
     public Merchant() {
     }
     public Merchant( String id) {
         this.id = id;
      }
     public String  getId() {
         return this.id;
     }
     public void setId(String  id) {
         this.id = id;
      }
     public String  getName() {
         return this.name;
     }
     public void setName(String  name) {
         this.name = name;
      }
     public String  getRemark() {
         return this.remark;
     }
     public void setRemark(String  remark) {
         this.remark = remark;
      }
     public String  getParentId() {
         return this.parentId;
     }
     public void setParentId(String  parentId) {
         this.parentId = parentId;
      }
     public Float  getSort() {
         return this.sort;
     }
     public void setSort(Float  sort) {
         this.sort = sort;
      }
     public Integer  getIsDelete() {
         return this.isDelete;
     }
     public void setIsDelete(Integer  isDelete) {
         this.isDelete = isDelete;
      }
     public Date  getCreateTime() {
         return this.createTime;
     }
     public void setCreateTime(Date  createTime) {
         this.createTime = createTime;
      }
     public Date  getUpdateTime() {
         return this.updateTime;
     }
     public void setUpdateTime(Date  updateTime) {
         this.updateTime = updateTime;
      }
	public List<Merchant> getSubMerchants() {
		return subMerchants;
	}
	public void setSubMerchants(List<Merchant> subMerchants) {
		this.subMerchants = subMerchants;
	}
	public Boolean getHasChild() {
		if(null==this.hasChild){
			this.hasChild=false;
		}
		return hasChild;
	}
	public void setHasChild(Boolean hasChild) {
		this.hasChild = hasChild;
	}
     
}
